package com.jintian.smart.platform.system.mapper;

import com.jintian.smart.kernel.orm.mapper.IBaseExtMapper;
import com.jintian.smart.base.api.system.entity.ConfigEntity;
import com.jintian.smart.base.api.system.form.ConfigQueryForm;
import com.jintian.smart.base.api.system.view.ConfigVO;
import org.beetl.sql.core.page.PageResult;
import org.beetl.sql.mapper.annotation.Mapper;
import org.beetl.sql.mapper.annotation.Param;
import org.beetl.sql.mapper.annotation.SqlResource;

/**
 * 系统参数配置 sys_config Dao层
 */
@Mapper
@SqlResource("system.Config")
public interface ConfigMapper extends IBaseExtMapper<ConfigEntity> {
    /**
     * 分页查询系统配置
     */
    PageResult<ConfigVO> queryByPage(@Param("queryForm") ConfigQueryForm queryForm);

    /**
     * 根据key查询获取数据
     */
    ConfigEntity selectByKey(String key);
}
